package com.chiang.mobilesafe.domain;

import android.graphics.drawable.Drawable;

/**
 * memorySize:Return total private dirty memory usage in kB.
 * @author Jiangchun
 *
 */
public class TaskInfo {

	private Drawable icon ;
	private String appName;
	private String packName;
	private int pid;
	private int memorySize;
	private boolean isChecked ;
	private boolean isSystemApp;
	
	public TaskInfo() {
	}
	
	public TaskInfo(Drawable icon, String appName, String packName, int pid,
			int memorySize,boolean isSystemApp) {
		super();
		this.icon = icon;
		this.appName = appName;
		this.packName = packName;
		this.pid = pid;
		this.memorySize = memorySize;
		this.isSystemApp=isSystemApp;
	}

	
	public TaskInfo(Drawable icon, String appName, String packName, int pid,
			int memorySize, boolean isChecked,boolean isSystemApp) {
		super();
		this.icon = icon;
		this.appName = appName;
		this.packName = packName;
		this.pid = pid;
		this.memorySize = memorySize;
		this.isChecked = isChecked;
		this.isSystemApp=isSystemApp;
	}



	public Drawable getIcon() {
		return icon;
	}
	public void setIcon(Drawable icon) {
		this.icon = icon;
	}
	public String getAppName() {
		return appName;
	}
	public void setAppName(String appName) {
		this.appName = appName;
	}
	public String getPackName() {
		return packName;
	}
	public void setPackName(String packName) {
		this.packName = packName;
	}
	public int getPid() {
		return pid;
	}
	public void setPid(int pid) {
		this.pid = pid;
	}
	public int getMemorySize() {
		return memorySize;
	}
	public void setMemorySize(int memorySize) {
		this.memorySize = memorySize;
	}
	public boolean isChecked() {
		return isChecked;
	}
	public void setChecked(boolean isChecked) {
		this.isChecked = isChecked;
	}

	
	public boolean isSystemApp() {
		return isSystemApp;
	}





	public void setSystemApp(boolean isSystemApp) {
		this.isSystemApp = isSystemApp;
	}





	@Override
	public String toString() {
		return "TaskInfo [icon=" + icon + ", appName=" + appName
				+ ", packName=" + packName + ", pid=" + pid + ", memorySize="
				+ memorySize + ", isChecked=" + isChecked + "]";
	}
	
}
